<?php

namespace App\Http\Controllers\Register;

use App\Services\Assess\SendLogService;
use App\Services\Assess\VisitorsRecordService;
use App\Services\LoginService;
use App\Services\Register\RegisterService;
use Illuminate\Support\Facades\Log;

class RegisterController
{

    /**
     * 构造函数
     * @author 牧羊人
     * @since 2020/11/10
     * LoginController constructor.
     */
    public function __construct()
    {
        $this->service = new RegisterService();
    }

    /**
     * 测评数据激活
     * @author wuyu
     * @since 2023/4/14
     */
    public function register()
    {
        return $this->service->register();
    }

    /**]
     * @Notes:确认礼品 产品提交
     * @Interface confirmProduct
     * @author: wuyu
     * @Time: 2023/4/17   14:43
     */
    public function confirmProduct()
    {
        return $this->service->confirmProduct();
    }

    /**
     * @Notes:获取买家端设置
     * @Interface getBuyerConfig
     * @return mixed
     * @author: wuyu
     * @Time: 2023/4/26   15:40
     */
    public function getBuyerConfig()
    {
        return $this->service->getBuyerConfig();
    }

    /**
     * @Notes:选择非产品 保存评价信息
     * @Interface confirmComment
     * @author: wuyu
     * @Time: 2023/4/17   15:53
     */
    public function confirmComment()
    {
        return $this->service->confirmComment();
    }

    /**
     * @Notes:用户收到邮箱后打开回访
     * @Interface emailReady
     * @author: wuyu
     * @Time: 2023/6/2   10:23
     */
    public function emailReady()
    {
        $SendLogService = new SendLogService();
        return $SendLogService->emailReady();

    }


    /**
     * @Notes:设置访客记录
     * @Interface setVisitorsRecord
     * @author: wuyu
     * @Time: 2023/5/4   11:10
     */
    public function setVisitorsRecord()
    {
        $VisitorsRecordService = new VisitorsRecordService();
        return $VisitorsRecordService->setVisitorsRecord();
    }

    public function checkEmail()
    {
        return $this->service->checkEmail();
    }

}
